-- GENERATED SPELL FOR [Vilebranch Speaker] --


function spell0_11391(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11391', 627, 1)
end

function spell1_11391(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_11391', 30309, 1)
end

function spell2_11391(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_11391', 590, 1)
end

function Sorts_11391(pUnit, Event)
local choix_sorts_11391 = math.random(0, 2)
if choix_sorts_11391 == 0 then
pUnit:RegisterEvent('spell0_11391', 1, 1)
end
if choix_sorts_11391 == 1 then
pUnit:RegisterEvent('spell1_11391', 1, 1)
end
if choix_sorts_11391 == 2 then
pUnit:RegisterEvent('spell2_11391', 1, 1)
end
end

function mob11391_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11391', math.random(1500, 3000), 1)
end

function mob11391_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11391_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11391_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11391, 1, 'mob11391_Action')
RegisterUnitEvent(11391, 2, 'mob11391_Leave')
RegisterUnitEvent(11391, 3, 'mob11391_Kill')
RegisterUnitEvent(11391, 4, 'mob11391_Die')
